﻿#ifndef DABASEFRAME_H
#define DABASEFRAME_H

#include "Utils/GloabTool/FuncTools.h"
#include "qwidget.h"

#include <QFrame>
#include <QWidget>

class DABaseFrame : public QFrame
{
    Q_OBJECT
public:
    DABaseFrame(QWidget *parent = nullptr);
    void setWidgetSize(int w, int h);
    void setWidgetSize(QSize size);
    void setPosition(QP::POSITION pos);
    void setWidgetHeight(int h);
    void setHSizePolicy(QSizePolicy::Policy hor);
    void setVSizePolicy(QSizePolicy::Policy hor);
    void addWdiget(QWidget *w);
    
protected:
    virtual void paintEvent(QPaintEvent *e);
};

#endif // DABASEFRAME_H
